package org.github.core.base;

import java.io.Serializable;
import java.util.function.Supplier;
import javax.validation.constraints.NotNull;
import static org.github.core.util.JacksonUtil.json;

public interface Json extends Serializable, Supplier<String> {
  @Override
  @NotNull
  default String get() {
    return json(this);
  }
}
